package net.simflow.swf.analyzer.graph.stats.opt;

import java.util.ArrayList;
import java.util.Collection;

import net.simflow.swf.analyzer.network.data.Link;

public class GraphLinkListAnalyzer {

	private static GraphLinkListAnalyzer instance = new GraphLinkListAnalyzer();

	private GraphLinkListAnalyzer() {
	}

	public static GraphLinkListAnalyzer getInstance() {
		return instance;
	}

	public ArrayList<Link> analyze(Collection<Link> links) {
		if (links == null) {
			return null;
		}

		ArrayList<Link> a = new ArrayList<Link>();
		for (Link l : links) {
			a.add(l);
		}

		return a;
	}
}
